<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ page trimDirectiveWhitespaces="true"%>

<jsp:useBean id="manager" class="beans.IndexBean" scope="request">
	<c:set target="${manager}" property="request"
		value="${pageContext.request}" />
	<c:set target="${manager}" property="response"
		value="${pageContext.response}" />
	<c:set target="${manager}" property="session"
		value="${pageContext.session}" />
</jsp:useBean>

<c:choose>
	<c:when test="${manager.load == true}">

		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>

<body>
	<form name="test" method="post" action="">
		<p>
			<input name="image" type="file">
		</p>
		<p>
			<input type="submit" value="Отправить">
		</p>
	</form>
</body>
		</html>

	</c:when>

	<c:when test="${manager.load == false}">
false
</c:when>
</c:choose>

